package com.hnd.springframework.beans.factory.support;

import com.hnd.springframework.beans.BeansException;
import com.hnd.springframework.core.io.Resource;
import com.hnd.springframework.core.io.ResourceLoader;

import java.io.IOException;

/**
 * 模板，负责规定湖区资源和bean注册的流程
 *
 * 负责资源的获取和bean的注册
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void LoadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources)throws BeansException;

    void loadBeanDefinitions(String location)throws BeansException;

}
